﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Data.Objects;
using DataLayer.Entity;

namespace DataLayer.Configuration
{
    public class AcademicPersonConfiguration : EntityConfiguration<AcademicPerson>
    {
        public AcademicPersonConfiguration()
        {
            MapHierarchy(ap => new
            {
                ap.PersonID,
                ap.Enrolment
            }).ToTable("AcademicPerson");

        }
    }
}
